<template>
  <el-dialog :model-value="visible" title="回复内容" :close-on-click-modal="false" :close-on-press-escape="false"
    :show-close="false" width="500">
    <el-input type="textarea" v-model="form.replyContent" rows="5" placeholder="请输入回复内容..." autocomplete="off" />
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="cancelFn">取消</el-button>
        <el-button type="primary" @click="confirmFn">确认</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script setup>
const props = defineProps({
  visible: {
    type: Boolean,
    default: false
  },
  forms: {
    type: Object,
    default: {}
  }
})
const form = props.forms;
// 取消
const emit = defineEmits()
const cancelFn = () => {
  emit('pick', { visible: false })
}
// 确认
const confirmFn = () => {
  emit('pick', { visible: false, form })
}
</script>

<style lang="less" scoped></style>